using FluentNHibernate.Mapping;

namespace OpenFuse.Cache.Maps
{
	public class FileMap : ClassMap<File>
	{
		public FileMap()
		{
//			this.TableName = "Files";

			Id(x => x.RowId);
			Map(x => x.CreationTime);
			Map(x => x.Date);
			Map(x => x.Data);
			Map(x => x.NodeId).SetAttribute("class", "uuid.string");
			Map(x => x.Size);
			Map(x => x.AssetId);
			Map(x => x.TaskId);
			Map(x => x.OwnerId);
			Map(x => x.AssetType);
			Map(x => x.Downloaded);
		}
	}
}
